package com.lanyuan.mapper.app;

import com.lanyuan.entity.app.DiagnosisAnswerFormMap;
import com.lanyuan.entity.app.DiagnosisQuestionFormMap;
import com.lanyuan.entity.sys.SysConfigFormMap;
import com.lanyuan.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiagnosisMapper extends BaseMapper {

    List<DiagnosisQuestionFormMap> findQuestionPage(DiagnosisQuestionFormMap formMap);
    //将选项的 question_id设置为0
    void relieveAnswerByQuestionId(String question_id);

    List<DiagnosisAnswerFormMap> findAnswerPage(DiagnosisAnswerFormMap formMap);

    void answerPointQuestion(@Param("question_id")Long question_id, @Param("answerIds")String[] answerIds);

    List<DiagnosisAnswerFormMap> findReplyAnswers( @Param("answerIds")String[] split);
    //将选项的 point_question_id设置为null
    void relieveAnswerPointQuestionId(String point_question_id);

    List<DiagnosisAnswerFormMap> findAnswerByQuestionId(String question_id);
}
